package com.example.patentback.entity;

import lombok.Data;

import javax.persistence.*;

@Data
public class Applicant {
    @Id
    private Long id;

    private String name;

    @Column(name = "success_case")
    private Long successCase;

    private String telephone;

    private String identity;

    private String code;

    private String address;

    @Column(name = "native_place")
    private String nativePlace;

    @Column(name = "user_id")
    private Long userId;

    @Transient
    private boolean hasContact;

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return success_case
     */
    public Long getSuccessCase() {
        return successCase;
    }

    /**
     * @param successCase
     */
    public void setSuccessCase(Long successCase) {
        this.successCase = successCase;
    }

    /**
     * @return telephone
     */
    public String getTelephone() {
        return telephone;
    }

    /**
     * @param telephone
     */
    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    /**
     * @return identity
     */
    public String getIdentity() {
        return identity;
    }

    /**
     * @param identity
     */
    public void setIdentity(String identity) {
        this.identity = identity;
    }

    /**
     * @return code
     */
    public String getCode() {
        return code;
    }

    /**
     * @param code
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * @return address
     */
    public String getAddress() {
        return address;
    }

    /**
     * @param address
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * @return native_place
     */
    public String getNativePlace() {
        return nativePlace;
    }

    /**
     * @param nativePlace
     */
    public void setNativePlace(String nativePlace) {
        this.nativePlace = nativePlace;
    }

    /**
     * @return userId
     */
    public Long getUserid() {
        return userId;
    }

    /**
     * @param userid
     */
    public void setUserid(Long userid) {
        this.userId = userid;
    }
}